import request from '@/utils/request'

// 查询命令集列表
export function listCmdset(query) {
  return request({
    url: '/kong/cmdset/list',
    method: 'get',
    params: query
  })
}

// 查询命令集详细
export function getCmdset(gid) {
  return request({
    url: '/kong/cmdset/' + gid,
    method: 'get'
  })
}

// 新增命令集
export function addCmdset(data) {
  return request({
    url: '/kong/cmdset',
    method: 'post',
    data: data
  })
}

// 修改命令集
export function updateCmdset(data) {
  return request({
    url: '/kong/cmdset',
    method: 'put',
    data: data
  })
}

// 删除命令集
export function delCmdset(gid) {
  return request({
    url: '/kong/cmdset/' + gid,
    method: 'delete'
  })
}
